﻿//Naming
Name SdKfz 251 Ausf. D Desert
ShortName SdKfz251DDesert
ItemID 23490

//Visuals
Icon SdKfz251Desert
Model mineworld.SdKfz251D
Texture SkinSdKfz251DDesert
RotateWheels true

//Third Person Camera Distance
CameraDistance 7.5
MaxThrottle 1.0
MaxNegativeThrottle 0.4

//Steering modifiers
TurnLeftSpeed 0.35
TurnRightSpeed 0.35

//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -34 -8 -17
WheelPosition 1 -34 -8 17
WheelPosition 2 46 -8 17
WheelPosition 3 46 -8 -17
WheelSpringStrength 0.5

//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.0

//Bouncy bouncy
Bounciness 0.3

//If true, then all wheels will apply drive forces
FourWheelDrive true

//Tank mode activate
Tank true
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 2000

//Inventory Slots
CargoSlots 10
ShellSlots 0

//Driver and Passengers
Driver 4 -1 -5
Passengers 5
Passenger 1 4 -1 -5 core
Passenger 2 -21 -2 -6 core
Passenger 3 -21 -2 6 core
Passenger 4 -10 12 0 core -60 60 -15 25 maschinengewehr34 MGFront
GunOrigin 4 2 5 0
Passenger 5 -32 12 0 core 135 225 -10 40 maschinengewehr34 MGRear
GunOrigin 5 -43 6 0

//Delays are in ticks or 1/20ths of seconds
ShootDelay 999
ShellDelay 999

//Sounds
StartSound halftrack_idle
StartSoundLength 60
EngineSound halftrack_engine
EngineSoundLength 70
ShootSoundSecondary MG34Shoot

//Recipe
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 tankBody 4 vehicleSeat
AddRecipeParts frontLeftWheel 1 wheel
AddRecipeParts frontRightWheel 1 wheel
AddRecipeParts leftTrack 1 catTrack
AddRecipeParts rightTrack 1 catTrack


//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 10 gray

//Health and collision
SetupPart core 1000 -55 -6 -21 108 28 42
SetupPart frontLeftWheel 50 38 -9 14 13 13 5
SetupPart frontRightWheel 50 38 -9 -19 13 13 5
SetupPart leftTrack 500 -41 -9 14 68 13 7
SetupPart rightTrack 500 -41 -9 -21 68 13 7
BulletDetection 5
Description German Half-track